package togoogle;

import java.util.Date;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class acctinfo {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private String acctid;
    @Persistent
    private int accttype;
    @Persistent
    private int valid;
    @Persistent
    private Date begintime;
    @Persistent
    private Date endtime;

    public acctinfo(String acctid, int accttype, Date begintime,Date endtime) {
        this.acctid = acctid;
        this.accttype = accttype;
        this.valid = 0;
        this.begintime = begintime;
        this.endtime = endtime;
        
    }

    // Accessors for the fields.  JDO doesn't use these, but your application does.

    public String getAcctId() {
        return acctid;
    }

    public int getAcctType() {
        return accttype;
    }
    public int getValid() {
        return valid;
    }

    public Date getBeginTime() {
        return begintime;
    }

    public Date getEndTime() {
        return endtime;
    }

    public void setAcctId(String acctid) {
        this.acctid = acctid;
    }
    public void setAcctType(int accttype) {
        this.accttype = accttype;
    }
    public void setValid(int valid) {
    	this.valid = valid;
    }
    public void setBeginTime(Date begintime) {
    	this.begintime = begintime;
    }
    public void setEndTime(Date endtime) {
    	this.endtime = endtime;
    }
}